import request from '@/utils/request'

// 绑定活动
export const binding = (param) => {
	return request.post('staff/binding', param)
}

// 活动数据
export const eventOverview = (param) => {
	return request.get('staff/eventOverview', param)
}

// 仪表盘
export const dashboard = (param) => {
	return request.get('staff/dashboard', param)
}

// 订单
export const dataOrder = (param) => {
	return request.post('staff/dataOrder', param)
}

// 核销记录
export const confirmPrizeList = (param) => {
	return request.post('staff/confirmPrizeList', param)
}

// 店员列表
export const clerkList = (param) => {
	return request.get('staff/clerkList', param)
}

// 删除店员
export const deleteClerk = (param) => {
	return request.post('staff/deleteClerk', param)
}

// 奖品核销
export const confirmPrize = (param) => {
	return request.post('staff/confirmPrize', param)
}

// 店员溯源
export const clerkSourceOrder = (param) => {
	return request.get('staff/clerkSourceOrder', param)
}

// 员工统计
export const getStaffStats = (param) => {
	return request.get('staff/staffStatistics', param)
}

// 意向客户
export const getIntentionCustomers = (param) => {
	return request.get('staff/prospectCust', param)
}

// 意向客户
export const getRefundOrders = (param) => {
	return request.get('staff/refundOrder', param)
}

// 电脑投屏
export const getScreenUrl = (param) => {
	return request.get('dashboard/getUrl', param)
}

// 导出订单
export const getExportUrl = (param) => {
	return request.get('staff/getExcelUrl', param)
}

// 手动录单
export const createManualOrder = (param) => {
	return request.post('staff/orderEntry', param)
}

// 获取推荐排行
export const getRankList = (param) => {
	return request.get('staff/ranking', param)
}

// 红包记录
export const getRedPacketRecord = (param) => {
	return request.get('staff/disburseList', param)
}

// 获取访客记录
export const getVisitorList = (param) => {
	return request.get('staff/visitorList', param)
}

// 获取访客详情
export const getVisitorDetail = (param) => {
	return request.get('staff/visitorDetail', param)
}

// 获取最近记录
export const getVisitorRecord = (param) => {
	return request.get('staff/visitorOperationLog', param)
}

// 获取跟进记录
export const customerFollowUpList = (param) => {
	return request.get('staff/customerFollowUpList', param)
}

// 提交跟进记录
export const customerSubmitFollowUp = (param) => {
	return request.post('staff/customerSubmitFollowUp', param)
}
